<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
	<link rel="stylesheet" href="/Public/qwadmin/css/colorbox.css" />

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="row">
                               
								
								 <form class="form-inline" action="{:U('index')}" style=" padding: 0px 5px; float:left" method="get">
                                <a class="btn btn-info" href="{:U('add')}" value="">新增</a>   
                                <label class="inline">输入</label>
                                <input type="text" name="outname" value="{$sh}" class="form-control">
                              
                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
                                    搜索
                                </button>
                            </form>
                        </div>
                        <div class="space-4"></div>
                        <div class="row">
                            <form id="form" method="post" action="{:U('del')}">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                        <th>合作伙伴</th>
                                        <th>贸易模式</th>
                                        <th>店主</th>
                                        <th>电话</th>
                                        <th>需求</th>
                                        <th>合作状态</th>
                                        <th class="center">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <style>
                                        .grouptd {
                                            position: relative;
                                        }

                                        .group {
                                            display: inline-block;
                                            width: 100%;
                                        }

                                        .groupselect {
                                            position: absolute;
                                            top: 0;
                                            left: 0;
                                            width: 100%;
                                            height: 100%;
                                            border: 0;
                                        }
                                    </style>
                                    <volist name="list" id="val">
                                        <tr>
                                            <td class="center">
                                                <input class="ids" type="checkbox" name="ids[]" value="{$val['id']}">
                                            </td>
                                            <td>{$val['outname']}</td>
                                            <td>{$val['trade_type']}</td>
                                            <td>{$val['linkman']}</td>
                                            <td>{$val['phone']}</td>
                                            <td>{$val['requirement']}/{$val['demo']}</td>
                                            <td>{$statuslist[$val['status']]}</td>
                                            <td class="center">
                                                <a href="{:U('edit',array('id'=>$val['id']))}">修改</a>&nbsp;
                                              <a href="{:U('bookadd',array('id'=>$val['id']))}">录入</a>&nbsp;
											  <a href="{:U('revistadd',array('id'=>$val['id']))}"  data-rel="colorbox">回访</a>&nbsp;
											     <a href="{:U('orderadd',array('id'=>$val[id]))}" value="">绑定订单</a>&nbsp;
								
											  <a href="{:U('user',array('id'=>$val['id']))}">查看</a>
                                            </td>
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </form>
                            <div class="cf">
                                <input id="submit" class="btn btn-info" type="button" value="删除">
                            </div>
                            {$page}
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<script src="/Public/qwadmin/js/jquery.colorbox.js"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".check-all").click(function () {
            $(".ids").prop("checked", this.checked);
        });
        $(".ids").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });
        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选店铺？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要该店铺?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
		
		
				var colorbox_params = {
          rel: 'colorbox',
   reposition: false,
  scalePhotos: false,
    scrolling: false,
     previous: '<i class="ace-icon fa fa-arrow-left"></i>',
         next: '<i class="ace-icon fa fa-arrow-right"></i>',
        close: '&times;',
      current: '',
     maxWidth: '100%',
    maxHeight: '100%',
   onComplete: function(){
     $.colorbox.resize();
   }
}
 
$('[data-rel="colorbox"]').colorbox(colorbox_params);
$('#cboxLoadingGraphic').append("<i class='ace-icon fa fa-spinner orange'>打开中</i>");
    
	
	
    })
</script>
</body>
</html>
